<?php
/*	$uid = $_POST['uid'];
	$stat = $_POST['stat'];
	if(!$uid || !$stat){
		exit;
	}
	$pdo = MyPdo::init();
	if($stat == 1){
		$user_stat = 2;
		$sql2 = "delete from bmxx8_user_normal where uid = ?";
		$sql3 = "insert into bmxx8_user_close(uid) values(?)";
	}else{
		$user_stat = 1;
		$sql2 = "delete from bmxx8_user_close where uid = ?";
		$sql3 = "insert into bmxx8_user_normal(uid) values(?)";
	}
	$sql = "update bmxx8_user set user_stat=? where user_id=?";
	$res = $pdo->dml($sql,array($user_stat,$uid));
	if($res && $res > 0){
		$res2 = $pdo->dml($sql2,array($uid));
		$res3 = $pdo->dml($sql3,array($uid));
		if($res3){
			unset($_SESSION['after_page_sess']);
			echo 'ok';
		}else{
			echo 'err1';
		}
	}else{
		echo 'err3';
	}*/